package com.liao.jta_jpa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 一、必须配置这个属性，不然事务不生效，各种报错！！！
 * spring:
 *   jpa:
 *     show-sql: true
 *     generate-ddl: true
 *     properties:
 *       javax:
 *         persistence:
 *           transactionType: JTA
 *  二、必须要加@Modifying
 */
@SpringBootApplication
public class JtaJpaApplication {

    public static void main(String[] args) {
        SpringApplication.run(JtaJpaApplication.class);
    }
}
